package cn.csq.design.structural.adapter.object;


import cn.csq.design.structural.adapter.MoviePlayer;
import cn.csq.design.structural.adapter.ZH_JPTranslator;

/**
 * @author csq
 * @date 2022/1/27 10:56:47
 */
public class MainTest {
    public static void main(String[] args) {

        MoviePlayer moviePlayer = new MoviePlayer();
        ZH_JPTranslator zh_jpTranslator = new ZH_JPTranslator();
        //创建
        JPMoviePlayerAdapter2 jpMoviePlayerAdapter = new JPMoviePlayerAdapter2(moviePlayer,zh_jpTranslator );

        String play = jpMoviePlayerAdapter.play();
        System.out.println("play = " + play);
    }
}
